package de.velvettear.squirrel.kernel;

import android.os.Parcel;
import android.os.Parcelable;

public class BruteForceReturn extends Return implements Parcelable {

	public String m_sPassword;
	public String m_sDuration;
	public String m_sCount;	
	
	public BruteForceReturn() {
		
	}
	
	public BruteForceReturn(Parcel source) {
		m_bSuccess = (Boolean) source.readValue(null);
		m_sMessage = source.readString();
		m_sCount = source.readString();
		m_sDuration = source.readString();
		m_sPassword = source.readString();
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeValue(m_bSuccess);
		dest.writeString(m_sMessage);
		dest.writeString(m_sCount);
		dest.writeString(m_sDuration);
		dest.writeString(m_sPassword);
	}
	
	public static final Parcelable.Creator<Return> CREATOR = new Parcelable.Creator<Return>() {		
		public Return createFromParcel(Parcel source) {
            return new BruteForceReturn(source);
		}
		
		public Return[] newArray(int size) {
			return new Return[size];
		}
	};
		
}
